<section class="box" style="overflow: hidden;margin-top: 50px">
    <header class="panel_header">
        <h2 class="title pull-left" style="padding-top: 3px;">                        
              <div class="chip">
                <img ng-src="http://{{vm.daren.darenLogo}}" alt="logo"> <a ng-href="http://h5.m.taobao.com/daren/home.html?userId={{vm.daren.darenUid}}" target="_blank">{{vm.daren.darenNick}}</a>
                <span class="cp v" title="已认证"></span>
                <span class="daren cp" title="达人"></span>
                <a ng-href="https://{{vm.daren.wangwangId}}" title="旺旺联系" target="_blank">
                    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" t="1482398512446" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" p-id="1294" width="16" height="16">
                        <path d="M384.887 78.974c49.902 20.708 109.436 49.030 150.577 80.414 6.443 4.932 14.14 7.952 22.219 8.718 221.978 21.474 389.374 192.954 389.374 398.878 0 221.168-195.314 401.108-435.405 401.108-240.135 0-435.491-179.94-435.491-401.108 0-170.205 117.196-322.334 291.652-378.594 19.562-6.315 32.042-25.429 29.937-45.883-2.274-22.285-7.038-43.823-12.863-63.533M305.027 2.791c0 0 41.588 67.847 49.413 144.157-187.321 60.406-321.823 225.507-321.823 420.034 0 245.534 214.492 444.653 479.036 444.653 264.543 0 478.949-199.119 478.949-444.653 0-229.93-187.829-418.908-428.729-442.21-90.491-69.039-256.846-121.981-256.846-121.981v0z" p-id="1295" fill="#1296db" />
                        <path d="M572.378 595.941c-32.574 0-54.006 1.934-89.895 1.934 39.504-76.076 9.142-155.957-28.875-179.154 34.275-7.526 51.327-20.285 88.791-30.66 54.644 47.776 53.793 166.546 29.98 207.881z" p-id="1296" fill="#1296db" />
                        <path d="M810.087 566.215c-32.743 0-54.091 1.915-89.897 1.915 39.334-76.055 9.058-156.021-29.043-179.154 34.402-7.441 51.454-20.262 88.79-30.66 54.73 47.882 53.877 166.567 30.15 207.9z" p-id="1297" fill="#1296db" />
                    </svg>
                </a>
                <a class="fr aliV" ng-if="vm.daren.aliVId" ng-href="https://da.taobao.com/n/merchant/detail?spm=0.0.0.0.UXzJ7P&id={{vm.daren.aliVId}}" target="_blank"></a>
            </div>
        </h2>
    </header>
    <div class="content-body">
        <table class="responsive-table centered highlight bordered darenShop" dw-loading="darenShop">
            <thead>
                <tr>
                    <th>店铺名称</th>
                    <th>店铺类型</th>
                    <th class="w150" ng-click="vm.sort('sell_money','down')">
                        <span class="cp">销售额</span>
                        <i ng-class="{'caret down icon cp':true,'green-text':vm.filter.sortColumn == 'sell_money'}"></i>
                    </th>
                    <th class="w150" ng-click="vm.sort('sell_amount','down')">
                        <span class="cp">销售量</span>
                        <i ng-class="{'caret down icon cp':true,'green-text':vm.filter.sortColumn == 'sell_amount'}"></i>
                    </th>
                    <th>成交均价</th>
                    <th>店铺详情</th>
                    <th>商品</th>
                </tr>
            </thead>
            <tbody>
                <tr class="repeat-item" dir-paginate="shop in vm.table.shops | itemsPerPage: 11" total-items="vm.table.count" pagination-id="redNetDarenShop" current-page="vm.pagination.newPageNumber">
                    <td ng-if="shop.userId">
                        <a href="http://store.taobao.com/shop/view_shop.htm?user_number_id={{shop.userId}}" target="_blank">{{shop.shopName}}</a>
                    </td>
                    <td ng-if="shop.userId">{{shop.shopType | shopType}}</td>
                    <td ng-if="shop.userId" title="点击查看历史数据" class="hisData cp" uid="{{shop.userId}}" dim="historySellMoney" jq-popup popup-config="shop" popup-type="'shop'" popup-dim="'historySellMoney'">{{shop.sellMoney | bigNum}}</td>
                    <td ng-if="shop.userId" title="点击查看历史数据" class="hisData cp" uid="{{shop.userId}}" dim="historySellAmount" jq-popup popup-config="shop" popup-type="'shop'" popup-dim="'historySellAmount'">{{shop.sellAmount | bigNum}}</td>
                    <td ng-if="shop.userId">{{shop.avgPrice}}</td>
                    <td ng-if="shop.userId" class="cp" ng-click="vm.getShopBasic($event,$index)">
                        <i class="pie chart icon" style="font-size: 16px;"></i>
                    </td>
                    <td ng-if="shop.userId">
                        <a ng-click="vm.getShopProds(shop)" href="javascript:void(0)">商品</a>
                    </td>
                    <td ng-if="!shop.userId" colspan="7">
                        <!-- 店铺详情 -->
                        <shop-stat-data-component shop-uid="shop.uid" ng-if="shop.uid"></shop-stat-data-component>
                    </td>
                </tr>
                <tr ng-if="vm.table.shops.length==0">
                    <td colspan="7">暂无数据</td>
                </tr>
            </tbody>
        </table>
        <div class="mt10 center-align">
            <dir-pagination-controls pagination-id="redNetDarenShop" on-page-change="vm.pageChanged(newPageNumber)" boundary-links="true"></dir-pagination-controls>
        </div>
    </div>
</section>
